<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>公告详情 - 邻里社区</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        :root {
            --primary: #3A7BFF;
            --primary-light: #E8F0FF;
            --accent: #FF7D45;
            --success: #4CAF50;
            --warning: #FFC107;
            --text-dark: #333333;
            --text-medium: #666666;
            --text-light: #999999;
            --background: #FAFAFA;
            --card-bg: #FFFFFF;
            --border-radius: 16px;
            --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Comic Sans MS', 'Marker Felt', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif; }
        body { 
            background-color: var(--background); 
            color: var(--text-dark); 
            line-height: 1.6; 
            max-width: 500px; 
            margin: 0 auto; 
            padding: 0 15px 80px; 
            background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 极 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-极-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60极2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e0e0e0' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
        }
        
        /* 头部设计 */
        .header { 
            background: linear-gradient(135deg, var(--primary), #5A91FF); 
            color: white; 
            padding: 18px 15px; 
            border-radius: 0 0 30px 30px; 
            margin-bottom: 25px; 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            box-shadow: 0 8px 24px rgba(58, 123, 255, 0.25); 
            position: relative;
            overflow: hidden;
        }
        .header::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 120px;
            height: 120px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' fill-opacity='0.2' d='M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5'/%3E%3C/svg%3E");
            background-size: contain;
            background-repeat: no-repeat;
            transform: rotate(15deg) translate(20px, -40px);
        }
        .logo { 
            font-size: 1.6rem; 
            font-weight: bold; 
            display: flex; 
            align-items: center; 
            position: relative;
            z-index: 2;
        }
        .logo i { 
            margin-right: 10px; 
            font-size: 1.8rem;
            animation: pulse 2s infinite;
        }
        .header-icons { 
            display: flex; 
            gap: 20px; 
            font-size: 1.4rem; 
            position: relative;
            z-index: 2;
        }
        .header-icons i {
            transition: var(--transition);
        }
        .header-icons i:hover {
            transform: scale(1.15);
        }
        
        /* 返回按钮 */
        .back-btn {
            display: inline-flex;
            align-items: center;
            color: var(--primary);
            font-weight: 500;
            margin-bottom: 15px;
            cursor: pointer;
            transition: var(--transition);
        }
        .back-btn:hover {
            color: var(--accent);
            transform: translateX(-5px);
        }
        .back-btn i {
            margin-right: 8px;
        }
        
        /* 公告详情卡片 */
        .announcement-card {
            background-color: var(--card-bg);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: var(--shadow);
            border-left: 5px solid var(--warning);
            position: relative;
            overflow: hidden;
        }
        
        .announcement-card::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 80px;
            height: 80px;
            background: rgba(255, 193, 7, 0.1);
            border-radius: 0 20px 0 50px;
        }
        
        .announcement-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
        }
        
        .announcement-title {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 10px;
            flex: 1;
        }
        
        .announcement-badge {
            background-color: var(--warning);
            color: #333;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-left: 15px;
            white-space: nowrap;
        }
        
        .announcement-meta {
            display: flex;
            align-items: center;
            color: var(--text-light);
            font-size: 0.9rem;
            margin-bottom: 20px;
        }
        
        .announcement-sender {
            font-weight: 600;
            color: var(--primary);
            margin-right: 15px;
        }
        
        .announcement-time {
            display: flex;
            align-items: center;
        }
        
        .announcement-time i {
            margin-right: 5px;
        }
        
        .announcement-content {
            color: var(--text-medium);
            line-height: 1.7;
            margin-bottom: 20px;
            font-size: 1.05rem;
        }
        
        .announcement-content p {
            margin-bottom: 15px;
        }
        
        .announcement-images {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .announcement-image {
            height: 150px;
            border-radius: 12px;
            overflow: hidden;
            background-color: #f5f5f5;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 2rem;
        }
        
        .announcement-actions {
            display: flex;
            justify-content: space-between;
            padding-top: 15px;
            border-top: 1px solid #f0f0f0;
        }
        
        .announcement-action {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-light);
            cursor: pointer;
            transition: var(--transition);
            padding: 8px 15px;
            border-radius: 20px;
        }
        
        .announcement-action:hover {
            background-color: #f5f5f5;
            color: var(--primary);
        }
        
        .announcement-action i {
            transition: var(--transition);
        }
        
        .announcement-action:hover i {
            transform: scale(1.2);
        }
        
        /* 相关公告 */
        .related-announcements {
            background-color: var(--card-bg);
            border-radius: 20px;
            padding: 20px;
            margin-bottom: 25px;
            box-shadow: var(--shadow);
        }
        
        .section-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .section-title i {
            color: var(--warning);
        }
        
        .related-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .related-item {
            display: flex;
            align-items: center;
            padding: 15px;
            background-color: #f9f9f9;
            border-radius: 12px;
            cursor: pointer;
            transition: var(--transition);
        }
        
        .related-item:hover {
            background-color: var(--primary-light);
            transform: translateX(5px);
        }
        
        .related-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 1.2rem;
            margin-right: 15px;
            flex-shrink: 0;
        }
        
        .related-content {
            flex: 1;
        }
        
        .related-title {
            font-weight: 600;
            margin-bottom: 5px;
            font-size: 1rem;
        }
        
        .related-time {
            font-size: 0.8rem;
            color: var(--text-light);
        }
        
        /* 底部导航 */
        .bottom-nav { 
            position: fixed; 
            bottom: 0; 
            left: 0; 
            right: 0; 
            background-color: var(--card-bg); 
            display: flex; 
            justify-content: space-around; 
            padding: 15px 0 10px; 
            box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05); 
            max-width: 500px; 
            margin: 0 auto; 
            z-index: 1000; 
            border-radius: 25px 25px 0 0;
        }
        .nav-item { 
            text-align: center; 
            color: var(--text-light); 
            text-decoration: none; 
            font-size: 0.85rem; 
            transition: var(--transition);
            position: relative;
            padding: 5px 10px;
            border-radius: 20px;
        }
        .nav-item.active { 
            color: var(--primary);
            background-color: rgba(58, 123, 255, 0.1);
        }
        .nav-item i { 
            font-size: 1.4rem; 
            display: block; 
            margin-bottom: 5px; 
        }
        .nav-item .notification-badge {
            position: absolute;
            top: -5px;
            right: 5px;
            background-color: var(--accent);
            color: white;
            font-size: 极.7rem;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
        }
        
        /* 发布按钮 */
        .publish-btn { 
            position: relative; 
        }
        .publish-btn .nav-item { 
            width: 60px; 
            height: 60px; 
            border-radius: 50%; 
            background: linear-gradient(135deg, var(--primary), #5A91FF); 
            color: white; 
            display: flex; 
            justify-content: center; 
            align-items: center; 
            margin-top: -25px; 
            box-shadow: 0 6px 16px rgba(58, 123, 255, 0.4);
            transition: var(--transition);
        }
        .publish-btn .nav-item:hover {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 8px 20px rgba(58, 123, 255, 0.5);
        }
        .publish-btn .nav-item i { 
            margin: 0; 
            font-size: 1.8rem; 
        }
        
        /* 动画 */
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.1); }
            100% { transform: scale(1); }
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* 响应式调整 */
        @media (max-width: 375px) {
            .announcement-title {
                font-size: 1.2rem;
            }
            .announcement-badge {
                font-size: 0.7rem;
                padding: 4px 8px;
            }
        }
    </style>
</head>
<body>
    <div class="header">
        <div class="logo"><i class="fas fa-hands-helping"></i> 邻里社区</div>
        <div class="header-icons">
            <i class="far fa-bell"></i>
            <i class="far fa-user-circle"></i>
        </div>
    </div>
    
    <div class="back-btn" onclick="history.back()">
        <i class="fas fa-arrow-left"></i> 返回公告列表
    </div>
    
    <div class="announcement-card">
        <div class="announcement-header">
            <div class="announcement-title">【重要通知】本周五下午电梯维护通知</div>
            <div class="announcement-badge">重要</div>
        </div>
        
        <div class="announcement-meta">
            <span class="announcement-sender">物业管理处</span>
            <span class="announcement-time"><i class="far fa-clock"></i> 2023年10月15日 14:30</span>
        </div>
        
        <div class="announcement-content">
            <p>尊敬的各位业主/住户：</p>
            <p>为确保电梯安全运行，物业服务中心计划于<strong>本周五（10月20日）下午14:00至17:00</strong>对小区1号楼、2号楼的所有电梯进行例行维护保养。</p>
            <p>维护期间，相关楼栋的电梯将<strong>暂停使用</strong>，请您提前做好出行安排。如有大件物品需要搬运，请避开此时间段。</p>
            <p>给您带来不便，敬请谅解！如有任何疑问，请致电物业服务中心：<strong>8888-8888</strong>。</p>
            <p>感谢您的理解与配合！</p>
        </div>
        
        <div class="announcement-images">
            <div class="announcement-image"><i class="fas fa-image"></i></div>
            <div class="announcement-image"><i class="fas fa-image"></i></div>
        </div>
        
        <div class="announcement-actions">
            <div class="announcement-action"><i class="far fa-bookmark"></i> <span>收藏</span></div>
            <div class="announcement-action"><i class="far fa-share-square"></i> <span>分享</span></div>
            <div class="announcement-action"><i class="far fa-check-circle"></i> <span>已读</span></div>
        </div>
    </div>
    
    <div class="related-announcements">
        <div class="section-title"><i class="fas fa-bullhorn"></i> 更多社区公告</div>
        
        <div class="related-list">
            <div class="related-item">
                <div class="related-icon"><i class="fas fa-tools"></i></div>
                <div class="related-content">
                    <div class="related-title">小区公共区域维修通知</div>
                    <div class="related-time">2023年10月12日</div>
                </div>
            </div>
            
            <div class="related-item">
                <div class="related-icon"><i class="fas fa-tree"></i></div>
                <div class="related-content">
                    <div class="related-title">关于小区绿化改造的计划</div>
                    <div class="related-time">2023年10月8日</div>
                </div>
            </div>
            
            <div class="related-item">
                <div class="related-icon"><i class="fas fa-calendar-alt"></i></div>
                <div class="related-content">
                    <div class="related-title">十月社区活动计划表</div>
                    <div class="related-time">2023年10月1日</div>
                </div>
            </div>
        </div>
    </div>
    
    <div class="bottom-nav">
        <a href="#" class="nav-item active">
            <i class="fas fa-home"></i>
            <span>首页</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-comments"></i>
            <span>消息</span>
        </a>
        <div class="publish-btn">
            <a href="#" class="nav-item">
                <i class="fas fa-plus"></i>
            </a>
        </div>
        <a href="#" class="nav-item">
            <i class="fas fa-bell"></i>
            <span>公告</span>
            <span class="notification-badge">3</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-user-circle"></i>
            <span>我的</span>
        </a>
    </div>
    
    <script>
        // 收藏功能
        document.querySelector('.announcement-action:nth-child(1)').addEventListener('click', function() {
            const icon = this.querySelector('i');
            if (icon.classList.contains('far')) {
                icon.classList.remove('far');
                icon.classList.add('fas');
                this.querySelector('span').textContent = '已收藏';
                this.style.color = 'var(--warning)';
                
                // 添加动画效果
                icon.classList.add('animate__animated', 'animate__heartBeat');
                setTimeout(() => {
                    icon.classList.remove('animate__animated', 'animate__heartBeat');
                }, 1000);
                
                alert('公告已收藏！');
            } else {
                icon.classList.remove('fas');
                icon.classList.add('far');
                this.querySelector('span').textContent = '收藏';
                this.style.color = 'var(--text-light)';
                alert('已取消收藏公告');
            }
        });
        
        // 分享功能
        document.querySelector('.announcement-action:nth-child(2)').addEventListener('click', function() {
            alert('公告已分享！');
        });
        
        // 已读功能
        document.querySelector('.announcement-action:nth-child(3)').addEventListener('click', function() {
            const icon = this.querySelector('i');
            if (icon.classList.contains('far')) {
                icon.classList.remove('far');
                icon.classList.add('fas');
                this.querySelector('span').textContent = '已读';
                this.style.color = 'var(--success)';
                
                // 添加动画效果
                icon.classList.add('animate__animated', 'animate__bounceIn');
                setTimeout(() => {
                    icon.classList.remove('animate__animated', 'animate__bounceIn');
                }, 1000);
                
                alert('已标记为已读！');
            }
        });
        
        // 相关公告点击
        document.querySelectorAll('.related-item').forEach(item => {
            item.addEventListener('click', function() {
                alert('跳转到相关公告详情页');
            });
        });
    </script>
</body>
</html>